import seaborn as sns
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib as mpl

mpl.rcParams['pdf.fonttype'] = 42
mpl.rcParams['ps.fonttype'] = 42
mpl.rcParams['axes.linewidth'] = 1.5
mpl.rcParams['lines.linewidth'] = 3
mpl.rcParams['lines.markersize'] = 10
mpl.rcParams['font.size'] = 15
mpl.rcParams['xtick.labelsize'] = 14
mpl.rcParams['ytick.labelsize'] = 16
mpl.rcParams['legend.fontsize'] = 14
mpl.rcParams['legend.framealpha'] = 0
mpl.rcParams['legend.borderpad'] = 0.1
mpl.rcParams["axes.labelweight"] = "bold"
mpl.rcParams["axes.labelsize"] = 14
mpl.rcParams['font.family'] = 'sans-serif'
mpl.rcParams['figure.figsize'] = (8, 4)

def long_tail():
    x = [i + 1 for i in range(10)]
    y = [min(2 ** (i - 2), 60) for i in x]
    data = pd.DataFrame({'x': x, 'y': y})
    
    sns.lineplot(x='x', y='y', data=data)
    plt.xlabel('#Flapping')
    plt.ylabel('Time (s)')
    plt.tight_layout(pad=0)
    plt.savefig('./figures/consistency/long_tail.pdf')
    plt.show()
  
long_tail()